var  INDEX = function(){
	var o = { };
	o.run = function()
	{
		this.getSort();
		//this.loadGoodsul();
	};
             o.getSort = function(){
           		$.get('/API/Managesort/loadsort',null,function(res){
	                         	if (res.status==true) {
	             		//辅助函数
			//template.config('escape', false);
			//template.helper('dateFormate',function(time){return getLocalTime(time);});
	             		var html = template('sort-list-sel-tpl', res);
	             		$("#sort_list_sel").append(html);
	             	}            
            		});
	}
	// 载入展示所有商品分类放在可点击收放ul
	o.loadGoodsul = function(){
		$.post("/API/HomeGoods/loadGoodsul",null,function(res){
			if (res.status==true) {
				var html = template('goods-list-ul-tpl', res);
				$("#megamenu-box").append(html);
			}
			
		});
	}
            
     	return o;     
}();